<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 200px;
        height: 100px;
        line-height: 100px;
        margin: 10px;
        border: 3px solid #000;
        text-align: center;
        border-radius: 5px;
        box-shadow: 2px 2px 2px #ccc;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div class="box" v-show="flag">我是v-show控制的盒子</div>
      <div class="box" v-if="1 === 1">我是v-if控制的盒子</div>
    </div>

    <script src="./vue.js"></script>
    <script>
      const app = new Vue({
        el: '#app',
        data: {
          flag: false,
        },
      });
    </script>
  </body>
</html>
